@model OpenPac.Models.District

@{
    ViewBag.Title = "Delete";
}

<h2>Delete</h2>

<h3>Are you sure you want to delete this?</h3>
<fieldset>
    <legend>District</legend>

    <div class="display-label">Latitude</div>
    <div class="display-field">@String.Format("{0:F}", Model.Latitude)</div>

    <div class="display-label">Longitude</div>
    <div class="display-field">@String.Format("{0:F}", Model.Longitude)</div>

    <div class="display-label">State</div>
    <div class="display-field">@Model.State</div>

    <div class="display-label">DistrictNumber</div>
    <div class="display-field">@Model.DistrictNumber</div>

    <div class="display-label">Candidates</div>
    <div class="display-field">@(Model.Candidates == null ? "None" : Model.Candidates.Count.ToString())</div>

    <div class="display-label">MediaOutlets</div>
    <div class="display-field">@(Model.MediaOutlets == null ? "None" : Model.MediaOutlets.Count.ToString())</div>

    <div class="display-label">ImportantIssues</div>
    <div class="display-field">@(Model.ImportantIssues == null ? "None" : Model.ImportantIssues.Count.ToString())</div>
</fieldset>
@using (Html.BeginForm()) {
    <p>
        <input type="submit" value="Delete" /> |
        @Html.ActionLink("Back to List", "Index")
    </p>
}


